Hierarchical parallelism in a network of distributed neural network cores

ABSTRACT

Networks of distributed neural cores are provided with hierarchical parallelism. In various embodiments, a plurality of neural cores is provided. Each of the plurality of neural cores comprises a plurality of vector compute units configured to operate in parallel. Each of the plurality of neural cores is configured to compute in parallel output activations by applying its plurality of vector compute units to input activations. Each of the plurality of neural cores is assigned a subset of output activations of a layer of a neural network for computation. Upon receipt of a subset of input activations of the layer of the neural network, each of the plurality of neural cores computes a partial sum for each of its assigned output activations, and computes its assigned output activations from at least the computed partial sums.

BACKGROUND

Embodiments of the present disclosure relate to neural computation, and more specifically, to hierarchical parallelism in networks of distributed neural cores.

BRIEF SUMMARY

According to embodiments of the present disclosure, systems for neural computation are provided. In various embodiments, a plurality of neural cores is provided. Each of the plurality of neural cores comprises a plurality of vector compute units configured to operate in parallel. Each of the plurality of neural cores is configured to compute in parallel output activations by applying its plurality of vector compute units to input activations. Each of the plurality of neural cores is assigned a subset of output activations of a layer of a neural network for computation. Upon receipt of a subset of input activations of the layer of the neural network, each of the plurality of neural cores computes a partial sum for each of its assigned output activations, and computes its assigned output activations from at least the computed partial sums.

According to embodiments of the present disclosure, methods of and computer program products for neural computation are provided. In various embodiments, a subset of input activations of a layer of a neural network is received at each of a plurality of neural cores. Each of the plurality of neural cores comprises a plurality of vector compute units configured to operate in parallel. Each of the plurality of neural cores is configured to compute in parallel output activations by applying its plurality of vector compute units to input activations. A subset of output activations of a layer of a neural network is assigned to each of the plurality of neural cores for computation. Upon receipt of a subset of input activations of the layer of the neural network, each of the plurality of neural cores: computes a partial sum for each of its assigned output activations, and computes its assigned output activations from at least the computed partial sums.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

FIG. 1 illustrates a neural core according to embodiments of the present disclosure.

FIG. 2 illustrates an exemplary neural core showing inter-core parallelism according to embodiments of the present disclosure.

FIG. 3 illustrates an exemplary neural core showing intra-core parallelism according to embodiments of the present disclosure.

FIG. 4 illustrates a method of neural computation according to embodiments of the present disclosure.

FIG. 5 depicts a computing node according to an embodiment of the present disclosure.

DETAILED DESCRIPTION

An artificial neuron is a mathematical function whose output is a nonlinear function of a linear combination of its inputs. Two neurons are connected if the output of one is an input to the other. A weight is a scalar value encoding the strength of the connection between the output of one neuron and the input of another neuron.

A neuron computes its output, called an activation, by applying a nonlinear activation function to a weighted sum of its inputs. A weighted sum is an intermediate result computed by multiplying each input with the corresponding weight and accumulating the products. A partial sum is a weighted sum of a subset of inputs. A weighted sum of all inputs may be computed in stages by accumulating one or more partial sums.

A neural network is a collection of one or more neurons. A neural network is often divided into groups of neurons called layers. A layer is a collection of one or more neurons that all receive input from the same layers and all send output to the same layers, and typically perform a similar function. An input layer is a layer that receives input from a source outside the neural network. An output layer is a layer that sends output to a target outside the neural network. All other layers are intermediate processing layers. A multilayer neural network is a neural network with more than one layer. A deep neural network is a multilayer neural network with many layers.

A tensor is a multidimensional array of numerical values. A tensor block is a contiguous subarray of the elements in a tensor.

Each neural network layer is associated with a parameter tensor V, weight tensor W, input data tensor X, output data tensor Y, and intermediate data tensor Z. The parameter tensor contains all of the parameters that control neuron activation functions a in the layer. The weight tensor contains all of the weights that connect inputs to the layer. The input data tensor contains all of the data that the layer consumes as input. The output data tensor contains all of the data that the layer computes as output. The intermediate data tensor contains any data that the layer produces as intermediate computations, such as partial sums.

The data tensors (input, output, and intermediate) for a layer may be 3-dimensional, where the first two dimensions may be interpreted as encoding spatial location and the third dimension as encoding different features. For example, when a data tensor represents a color image, the first two dimensions encode vertical and horizontal coordinates within the image, and the third dimension encodes the color at each location. Every element of the input data tensor X can be connected to every neuron by a separate weight, so the weight tensor W generally has 6 dimensions, concatenating the 3 dimensions of the input data tensor (input row a, input column b, input feature c) with the 3 dimensions of the output data tensor (output row i, output column j, output feature k). The intermediate data tensor Z has the same shape as the output data tensor Y. The parameter tensor V concatenates the 3 output data tensor dimensions with an additional dimension o that indexes the parameters of the activation function σ.

An element of a layer's output data tensor Y can be computed as in Equation 1 where the neuron activation function σ is configured by the vector of activation function parameters V[i, j, k, :], and the weighted sum Z[i,j,k] can be computed as in Equation 2.

$\begin{matrix} {{Y\left\lbrack {i,j,k} \right\rbrack} = {\sigma \left( {{V\left\lbrack {i,j,k,:} \right\rbrack};{Z\left\lbrack {i,j,k} \right\rbrack}} \right)}} & {{Equation}\mspace{14mu} 1} \\ {{Z\left\lbrack {i,j,k} \right\rbrack} = {\sum\limits_{a = 1}^{A}\; {\sum\limits_{b = 1}^{B}\; {\sum\limits_{c = 1}^{C}\; {{W\left\lbrack {i,j,k,a,b,c} \right\rbrack} \cdot {X\left\lbrack {a,b,c} \right\rbrack}}}}}} & {{Equation}\mspace{14mu} 2} \end{matrix}$

For simplicity of notation, the weighted sum in Equation 2 may be referred to as the output, which is equivalent to using a linear activation function Y[i,j,k]=σ(Z[i, j, k])=Z[i, j, k], with the understanding that the same statements apply without loss of generality when a different activation function is used.

In various embodiments, computation of the output data tensor as described above is decomposed into smaller problems. Each problem may then be solved on one or more neural core, or on one or more core of a conventional multicore system in parallel.

It will be apparent from the above that neural networks are inherently parallel structures. Neurons in a given layer receive inputs, X with elements x_(i) from one or more layers or other inputs. Each neuron computes its state, y∈Y based on the inputs and weights W with elements w_(i). In various embodiments, the weighed sum of inputs is adjusted by a bias b, and then the result is passed to a nonlinearity F(·). For example, a single neuron activation may be expressed as y=F(b+Σx_(i)w_(i)).

Because all neurons in a given layer receive inputs from the same layers and compute their outputs independently, neuron activations can be computed in parallel. Because of this aspect of the overall neural network, performing computation in parallel distributed cores accelerates overall computation. Further, within each core vector operations can be computed in parallel. Even with recurrent inputs, for example when a layer projects back to itself, all neurons are still updated simultaneously. Effectively, the recurrent connections are delayed to align with a subsequent input to the layer.

With reference now to FIG. 1, a neural core according to embodiments of the present disclosure is depicted. A neural core 100 is a tileable computational unit that computes one block of an output tensor. A neural core 100 has M inputs and N outputs. In various embodiments, M=N. To compute an output tensor block, a neural core multiplies an M×1 input tensor block 101 with an M×N weight tensor block 102 and accumulates the products into weighted sums that are stored in a 1×N intermediate tensor block 103. A 0×N parameter tensor block contains the 0 parameters that specify each of the N neuron activation functions that are applied to the intermediate tensor block 103 to produce a 1×N output tensor block 105.

Multiple neural cores may be tiled in a neural core array. In some embodiments, the array is 2-dimensional.

A neural network model is a set of constants that collectively specify the entire computation performed by a neural network, including the graph of connections between neurons as well as the weights and activation function parameters for every neuron. Training is the process of modifying the neural network model to perform a desired function. Inference is the process of applying a neural network to an input to produce an output, without modifying the neural network model.

An inference processing unit is a category of processors that perform neural network inference. A neural inference chip is a specific physical instance of an inference processing unit.

In embodiments including multiple cores in an array, each core implements a part of an overall neural network's computation. In a given layer with _(NNEURON) output neurons indexed by j=¹:N_(NEURON) with N_(INPUT) input neurons whose value are x_(i), indexed by i=1:N_(INPUT), then the value of a an output of the layer is given by Equation 3 for j=1:N_(NEURON) and i=1:N_(INPUT).

Y _(j) =F(b _(j) +Σx _(i) w _(ji))   Equation 3

In some embodiments, each core computes some number of output neurons. For N_(CORE) cores, each core computes on average N_(NEURON)/N_(CORE) output neurons, each receiving all inputs. In this case, all cores need all inputs but only compute a fraction of outputs. For example:

Core 1 computes: Y _(j) =F(b _(j) +Σx _(i) w _(ji)) for j=1:N_(NEURON) N_(CORE) and i=1:N_(INPUT)

Core 2 computes: Y _(j) =F(b _(j) +Σx _(i) w _(ji)) for j=N _(NEURON) /N _(CORE)+1:2N _(NEURON) /N _(CORE) and i=1:N _(INPUT)

Core k computes: Y _(j) =F(b _(j) +Σx _(i) w _(ji)) for j=(k−1)N _(NEURON) N _(CORE)+1:kN _(NEURON) /N _(CORE) and i=1:N _(INPUT)

Core N_(CORE) computes: Y _(j) =F(b _(j) +Σx _(i) w _(ji)) for j=(N _(CORE)−1)N _(NEURON) /N _(CORE)+1:N _(NEURON) and i=1:N _(INPUT)

In some embodiments, each core computes all output neurons but only for a subset of inputs. For N_(CORE) cores, each core computes all output neurons for on average N_(INPUT)/N_(CORE) input neurons. In this case, cores need only a fraction of inputs but the outputs need to be collected and summed. For example:

Core 1 computes: Y _(j_core1) =Σx _(i) w _(ji) for j=:N _(NEURON) and i=1:N _(INPUT) /N _(CORE)

Core 2 computes: Y _(j_core2) =Σx _(i) w _(ji) for j=1:N _(NEURON) and i=N _(INPUT) /N _(CORE)+1:2N _(INPUT) /N _(CORE)

Core k computes: Y _(j_corek) =Σx _(i) w _(ji) for j=1:N_(NEURON) and i=(k−1)N _(INPUT) /N _(CORE)+1: kN _(NEURON) /N _(CORE)

Core N _(CORE) computes: Y _(j_coreNCORE) =Σx _(i) w _(ji) for j=1:N _(NEURON) and i=(N _(CORE)−1)N _(INPUT) /N _(CORE)+1:N _(INPUT)

To arrive at a complete result, Y_(j)=F(b_(j)+ΣY_(i_corek)) for j=1:N_(NEURON)/N_(CORE) and k=1:N_(CORE). In various embodiments, the complete result is computed among the cores or off-core.

In some implementation, each core computes some number of output neurons but without each core having access to all of the input neurons. In such embodiments, each core computes partial outputs and passes them around until each core has all of the partials it needs to completely compute its set of neurons. In such embodiments, cores only need to pass information (partial sums) that are non-zero, allowing the array to exploit the high-level structure of the neural network layers. For example, convolutional neural networks require less computation and communication of inputs, outputs, and partial sums. For example:

Core 1 computes: Y _(j_core1) =Σx _(i) w _(ji) for j=1:N _(NEURON) and i=1:N _(INPUT) /N _(CORE)

Core 2 computes: Y _(j_core2) =Σx _(i) w _(ji) for j=1:N _(NEURON) and i=N _(INPUT) /N _(CORE)+1:2N _(INPUT) /N _(CORE)

Core k computes: Y_(j_corek) =Σx _(i) w _(ji) for j=1:N _(NEURON) and i=(k−1)N _(INPUT) /N _(CORE)+1:kN _(NEURON) /N _(CORE)

Core N _(CORE) computes: Y _(j_coreNCORE) =Σx _(i) w _(ji) for j=1:N _(NEURON) and i=(N _(CORE)−1)N _(INPUT) /N _(CORE)+1:N _(INPUT)

Then a complete result is computed either sequentially or overlapped. Y_(j)=F(b_(j)+ΣY_(i_corek)) for j=1:N_(NEURON)/N_(CORE) and k=1:N_(CORE).

Core 1 computes: Y _(j) =F(b _(j) +ΣY _(j_corek)) for j=1:N _(NEURON) /N _(CORE) and k=1:N _(CORE)

Core 2 computes: Y _(j) =F(b _(j) ΣY _(j_corek)) for j=N _(NEURON) /N _(CORE)+1:2N _(NEURON) /N _(CORE) and k=1:N _(CORE)

Core k computes: Y _(j) =F(b _(j) +ΣY _(j_corek)) for j=(kz−1)N _(NEURON)/N_(CORE)+1:kN _(NEURON) /N _(CORE) and k=1:N _(CORE)

Core N_(CORE) computes: Y=F(b _(j) +Y _(j_corek)) for j=(N _(CORE)−1)N _(NEURON) /N _(CORE)+1:N _(NEURON) and k=1:N _(CORE)

With reference now to FIG. 2, an exemplary neural core showing inter-core parallelism is illustrated. Core 201 includes crossbar 202 comprising parallel vector compute units, which receives inputs 203 X=[x₁, . . . , x_(N) _(INPUT) /N _(CORE)] and multiplies them by parameters

$\begin{bmatrix} w_{11} & \ldots & w_{1M} \\ w_{21} & \ldots & w_{2M} \\ \ldots & \ldots & \ldots \end{bmatrix}\quad$

where M=N_(INPUT)/N_(CORE). The results of the matrix multiplication are provided to parallel sum and nonlinearity units 205, which receive partial sum inputs corek 206 from other cores in the array.

As noted above, each core in an array includes parallel/concurrent neural network compute elements. For example, a given core k computes:

Y _(j_corek) =Σx _(i) w _(ji) for j=1:N _(NEURON) and i=(k−1)N _(INPUT) /N _(CORE)+1:kN _(NEURON) /N _(CORE)

and/or it computes

Y _(j) =F(b _(j) +Σx _(i) w _(ji) for j=(k−1)N _(NEURON) /N _(CORE)+1:kN _(NEURON) /N _(CORE) and k=1:N _(CORE)

The N_(NEURON) partial sums (Y_(j_corek)) can be computed at the same time with separate vector units, each computing vector multiply and sum (Σx_(i)w_(ji)) for a single neuron j. The N_(NEURON) sum and nonlinearity (Y_(j)) can be computed at the same time with separate accumulation and nonlinear units, each computing for a single neuron j.

With reference now to FIG. 3, an exemplary neural core showing intra-core parallelism is illustrated. Core 301 includes vector multiply/sum unit 302 (which corresponds to one of the units 202 in FIG. 2), which receives inputs 303 [x₁, . . . , x₈] and multiplies them by parameters 304 [w_(j1), . . . , w_(j8)]. The results of the matrix multiplication are provided to parallel sum and nonlinearity unit 305, which receive partial sum input 306 from other cores in the array and provides neuron output 307. Accordingly, a given vector unit can operate on many inputs at once to produce a single output or multiple outputs.

As set out above, the vector units each compute in a parallel/concurrent manner. For example, the j^(th) vector unit of the k^(th) core computes Y_(j_corek)=Σx_(i)w_(ji). This operation can be performed in parallel/concurrently. The vector unit performs parallel summations, using for example a summation tree, which can be pipelined to further increase concurrency. For example if i=1:8 (as pictured), the vector unit would implement eight parallel multiplications, followed by four 2-input additions, followed by two 2-input additions, followed by one 2-input addition. These four parallel operations may be pipelined, running concurrently for higher throughput.

Referring to Table 1, a variety of total core array parallelism values are given for core array sizes (columns 1>1 . . . 64×64) and cross-bar sizes (rows 1×1 . . . 1024×1024). Total parallelism is the product of the core array size and crossbar sizes.

TABLE 1 1 × 1 2 × 2 4 × 4 8 × 8 16 × 16 32 × 32 64 × 64 1 × 1 1 4 16 64 256 1024 4096 16 × 16 256 1024 4096 16384 65536 262144 1048576 32 × 32 1024 4096 16384 65536 262144 1048576 4194304 64 × 64 4096 16384 65536 262144 1048576 4194304 16777216 256 × 256 65536 262144 1048576 4194304 16777216 67108864 268435456 1024 × 1024 1048576 4194304 16777216 67108864 268435456 536870912 4294967296

Referring to FIG. 4, a method of neural computation is illustrated according to embodiments of the present disclosure. At 401, a subset of input activations of a layer of a neural network is received at each of a plurality of neural cores. Each of the plurality of neural cores comprises a plurality of vector compute units configured to operate in parallel. Each of the plurality of neural cores is configured to compute in parallel output activations by applying its plurality of vector compute units to input activations. At 402, a subset of output activations of a layer of a neural network is assigned to each of the plurality of neural cores for computation. Upon receipt of a subset of input activations of the layer of the neural network, each of the plurality of neural cores: computes a partial sum for each of its assigned output activations at 403, and computes its assigned output activations from at least the computed partial sums 405. In some embodiments, each of the plurality of cores receives partial sums for at least one of its assigned output activations from another of the plurality of neural cores at 404, and computes its assigned output activations from the computed partial sums and the received partial sums at 405.

It will be appreciated that neural networks are provided herein may be used as a classifier or a generator.

Referring now to FIG. 5, a schematic of an example of a computing node is shown. Computing node 10 is only one example of a suitable computing node and is not intended to suggest any limitation as to the scope of use or functionality of embodiments described herein. Regardless, computing node 10 is capable of being implemented and/or performing any of the functionality set forth hereinabove.

In computing node 10 there is a computer system/server 12, which is operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, and/or configurations that may be suitable for use with computer system/server 12 include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments that include any of the above systems or devices, and the like.

Computer system/server 12 may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, and so on that perform particular tasks or implement particular abstract data types. Computer system/server 12 may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.

As shown in FIG. 5, computer system/server 12 in computing node 10 is shown in the form of a general-purpose computing device. The components of computer system/server 12 may include, but are not limited to, one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including system memory 28 to processor 16.

Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, Peripheral Component Interconnect (PCI) bus, Peripheral Component Interconnect Express (PCIe), and Advanced Microcontroller Bus Architecture (AMBA).

Computer system/server 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server 12, and it includes both volatile and non-volatile media, removable and non-removable media.

System memory 28 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache memory 32. Computer system/server 12 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, storage system 34 can be provided for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a “hard drive”). Although not shown, a magnetic disk drive for reading from and writing to a removable, non-volatile magnetic disk (e.g., a “floppy disk”), and an optical disk drive for reading from or writing to a removable, non-volatile optical disk such as a CD-ROM, DVD-ROM or other optical media can be provided. In such instances, each can be connected to bus 18 by one or more data media interfaces. As will be further depicted and described below, memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the disclosure.

Program/utility 40, having a set (at least one) of program modules 42, may be stored in memory 28 by way of example, and not limitation, as well as an operating system, one or more application programs, other program modules, and program data. Each of the operating system, one or more application programs, other program modules, and program data or some combination thereof, may include an implementation of a networking environment. Program modules 42 generally carry out the functions and/or methodologies of embodiments as described herein.

Computer system/server 12 may also communicate with one or more external devices 14 such as a keyboard, a pointing device, a display 24, etc.; one or more devices that enable a user to interact with computer system/server 12; and/or any devices (e.g., network card, modem, etc.) that enable computer system/server 12 to communicate with one or more other computing devices. Such communication can occur via Input/Output (I/O) interfaces 22. Still yet, computer system/server 12 can communicate with one or more networks such as a local area network (LAN), a general wide area network (WAN), and/or a public network (e.g., the Internet) via network adapter 20. As depicted, network adapter 20 communicates with the other components of computer system/server 12 via bus 18. It should be understood that although not shown, other hardware and/or software components could be used in conjunction with computer system/server 12. Examples, include, but are not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.

The present disclosure may be embodied as a system, a method, and/or a computer program product. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present disclosure.

The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.

Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.

Computer readable program instructions for carrying out operations of the present disclosure may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present disclosure.

Aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.

These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.

The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.

The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.

In various embodiments, one or more inference processing unit (not pictured) is coupled to bus 18. In such embodiments, an IPU may receive data from or write data to memory 28 via bus 18. Likewise, an IPU may interact with other components via bus 18 as described herein.

The descriptions of the various embodiments of the present disclosure have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. 

What is claimed is:
 1. A neural inference chip, comprising: a plurality of neural cores, each of the plurality of neural cores comprising a plurality of vector compute units configured to operate in parallel, wherein: each of the plurality of neural cores is configured to compute in parallel output activations by applying its plurality of vector compute units to input activations; each of the plurality of neural cores is assigned a subset of output activations of a layer of a neural network for computation.
 2. The neural inference chip of claim 1, wherein: upon receipt of a subset of input activations of the layer of the neural network, each of the plurality of neural cores computes a partial sum for each of its assigned output activations, and computes its assigned output activations from at least the computed partial sums.
 3. The neural inference chip of claim 2, wherein upon receipt of a subset of input activations of the layer of the neural network, each of the plurality of neural cores receives partial sums for at least one of its assigned output activations from another of the plurality of neural cores, and computes its assigned output activations from the computed partial sums and the received partial sums.
 4. The neural inference chip of claim 1, wherein the vector compute units comprise multiplication and addition units.
 5. The neural inference chip of claim 1, wherein the vector compute units comprise accumulation units.
 6. The neural inference chip of claim 2, wherein the plurality of neural cores perform said partial sum computation in parallel.
 7. The neural inference chip of claim 2, wherein the plurality of neural cores perform said output activation computation in parallel.
 8. The neural inference chip of claim 2, wherein computing the partial sum comprises applying at least one of the plurality of vector compute units to multiply the input activations and synaptic weights.
 9. The neural inference chip of claim 2, wherein computing the assigned output activations comprises applying a plurality of addition units.
 10. The neural inference chip of claim 2, wherein computing output activations comprises applying a nonlinear function.
 11. The system of claim 2, wherein the vector compute units are configured to: perform a plurality of multiply operations in parallel; perform a plurality of additions in parallel; and accumulating the partial sum.
 12. The system of claim 2, wherein the plurality of vector compute units are configured to compute partial sums in parallel.
 13. The system of claim 1, wherein said computation by each of the plurality of neural cores is pipelined.
 14. The system of claim 13, wherein each of the plurality of neural cores is configured to concurrently perform each stage of said computation.
 15. The system of claim 14, wherein said computation maintains parallelism.
 16. A method comprising: receiving at each of a plurality of neural cores a subset of input activations of a layer of a neural network, each of the plurality of neural cores comprising a plurality of vector compute units configured to operate in parallel, each of the plurality of neural cores configured to compute in parallel output activations by applying its plurality of vector multipliers to input activations; assigning each of the plurality of neural cores a subset of output activations of a layer of a neural network for computation; upon receipt of a subset of input activations of the layer of the neural network, each of the plurality of neural cores computing a partial sum for each of its assigned output activations, and computing its assigned output activations from at least the computed partial sums.
 17. The method of claim 16, wherein upon receipt of a subset of input activations of the layer of the neural network, each of the plurality of neural cores receives partial sums for at least one of its assigned output activations from another of the plurality of neural cores, and computes its assigned output activations from the computed partial sums and the received partial sums.
 18. The method of claim 16, wherein the vector compute units comprise multiplication and addition units.
 19. The method of claim 16, wherein the vector compute units comprise accumulation units.
 20. The method of claim 16, wherein the plurality of neural cores perform said partial sum computation in parallel.
 21. The method of claim 16, wherein the plurality of neural cores perform said output activation computation in parallel.
 22. The method of claim 16, wherein computing the partial sum comprises applying at least one of the plurality of vector compute units to multiply the input activations and synaptic weights.
 23. The method of claim 16, wherein computing the assigned output activations comprises applying a plurality of addition units.
 24. The method of claim 16, wherein computing output activations comprises applying a nonlinear function.
 25. The method of claim 16, further comprising: performing a plurality of multiply operations in parallel; performing a plurality of additions in parallel; and accumulating the partial sum. 